
declare module Microsoft.Office.WebExtension {

    /** Represents a collection of custom namespace prefix mappings. */
    export class CustomXmlPrefixMappings {

        /** Asynchronously adds a prefix to namespace mapping to use when querying an item. */
        addNamespaceAsync(prefix: string, ns: string, options?: { asyncContext?: any; }, callback?: (result: AsyncResult) => void);

        /** Asynchronously gets the namespace mapped to the specified prefix. */
        getNamespaceAsync(prefix: string, options?: { asyncContext?: any; }, callback?: (result: AsyncResult) => void);

        /** Asynchronously gets the prefix for the specified namespace. */
        getPrefixAsync(ns: string, options?: { asyncContext?: any; }, callback?: (result: AsyncResult) => void);
    }
}